<template>
	<view class="page">
		<view class="infomation-list">
			<InformationItem :infoList="infoList" :isMyPage="true" :isDel="false" :isMenu="true"></InformationItem>
		</view>
	</view>
</template>

<script>
	import InformationItem from "@/components/InformationItem/InformationItem.vue"
	export default {
		data() {
			return {
				infoList:[]
			}
		},
		onLoad() {
			this.getMyCollection()
		},
		methods: {
			getMyCollection(){
				this.$api.getMyCollection({openid: getApp().globalData.openid}).then(res => {
					console.log(res.data)
					this.infoList = res.data
				})
			}
		},
		components:{
			InformationItem,
		}
	}
</script>

<style scoped>
@import url('myCollection.css');
</style>